import request from '../../utils/request';

// img列表
export function getImgList (params){
    return request({
        url:"/sys/iaHomepage/getPage.do",
        method: 'get',
        params: params
    });
};


// 新增 img
export function addHomeImg (params){
    return request({
        url:"/sys/iaHomepage/add.do",
        method: 'post',
        data: params,
        headContype:true
    });
};


//编辑 img
export function editHomeImg (params){
    return request({
        url:"/sys/iaHomepage/update.do",
        method: 'put',
        data: params,
        headContype:true
    });
};


// 删除img
export function deleteHomeImg (params){
    return request({
        url:"/sys/iaHomepage/delete.do",
        method: 'DELETE',
        params: params
    });
};


// 查询img详情
export function queryHomeImgDetail (params){
    return request({
        url:"/sys/iaHomepage/getDetail.do",
        method: 'get',
        params: params
    });
};